<U:PRJTMP x:Class="WPFExcelReport.SJHVA06"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"   
                    xmlns:VA="clr-namespace:WPFExcelReport;assembly=TVAART"  
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"                    
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"  
                    xmlns:WK="clr-namespace:WPFExcelReport;assembly=TWASTKE"  
                    xmlns:BF="clr-namespace:WPFExcelReport;assembly=TBSFARB"   
                    xmlns:BT="clr-namespace:WPFExcelReport;assembly=TWTSAER"  
                    xmlns:WG="clr-namespace:WPFExcelReport;assembly=TWASTGA"  
                    xmlns:FT="clr-namespace:WPFExcelReport;assembly=TWTSCHUSS" 
                    xmlns:WS="clr-namespace:WPFExcelReport;assembly=TWASTAMM" 
                    xmlns:DF="clr-namespace:WPFExcelReport;assembly=TWTEINZ"  
                     xmlns:WTW="clr-namespace:WPFExcelReport;assembly=TWTGEW"  
                     xmlns:BG="clr-namespace:WPFExcelReport;assembly=TBASTGA"  
                    xmlns:TXT="clr-namespace:WPFExcelReport;assembly=TTXTIND"  
                     xmlns:CO="clr-namespace:WPFExcelReport;assembly=TICC_ABPOS_MCO" 
                    xmlns:MUX="clr-namespace:WPFExcelReport;assembly=TICC_ABAUFM" 
                    xmlns:AB="clr-namespace:WPFExcelReport;assembly=TABPOS"   
                     xmlns:AR="clr-namespace:WPFExcelReport;assembly=TABPR"   
                     xmlns:U="clr-namespace:WPFExcelReport;assembly=ITXUI"  
                    xmlns:BS="clr-namespace:WPFExcelReport;assembly=TBSSATZ"   
                    xmlns:BC="clr-namespace:WPFExcelReport;assembly=TBSFARB"   
                     xmlns:ST="clr-namespace:WPFExcelReport;assembly=TSTUELI"  
                      xmlns:BH="clr-namespace:WPFExcelReport;assembly=TBHSATZ"   
                    xmlns:VF="clr-namespace:WPFExcelReport;assembly=TVAFARBEN"  
                    Name="TV" 
>
    <U:PRJTMP.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:NOTConverter x:Key="not"/>
    </U:PRJTMP.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
            <RowDefinition Height="1.5*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="1*"></ColumnDefinition>
            <ColumnDefinition Width="Auto"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <U:TSJHVA06 Grid.Row="1"  Grid.Column="0" 
                             KOLL="SJH17"
                           Name="cVA" 
                        IsSameProdArt="True" 
                         IsShowTxt="True"
                        FDDIM="CM "
                         ARTST="F" 
                          VAPR ="{Binding WFART,ElementName=TV}"
                          />
        <TabControl Grid.Row="2" Grid.Column="0" >
            <TabItem Header="规格"  Name="ZoneWS">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"></RowDefinition>
                        <RowDefinition Height="1*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                        <ColumnDefinition Width="1*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <U:WSSJHBOX Grid.Row="1"  Grid.Column="0"  
                                Margin="5,0,0,0" Name="cWS" 
                                IsAuto="True" 
                                IsImage="False" 
                                DES="{Binding DES,ElementName=cVA}"  
                                ARTGRP="{Binding ARTGRP,ElementName=cVA}"  
                                PRODGRP="{Binding PRODGRP,ElementName=cVA}"  
                                ORDERNUM="{Binding PRART,ElementName=cVA}"
                                WALIEFNR="{Binding LIEFNR,ElementName=cVA}"
                                FBRTU="{Binding FBRTU,ElementName=cVA}"  
                                FBRTL="{Binding FBRTL,ElementName=cVA}"  
                                FGRLFD="{Binding FGRLFD,ElementName=cVA}"  
                                FGRQM="{Binding FGRQM,ElementName=cVA}"  
                                FFDDIK="{Binding FFDDIK,ElementName=cVA}"  
                                FFDDIS="{Binding FFDDIS,ElementName=cVA}"
                                DENUM="{Binding FDDIM,ElementName=cVA}"                      
                                IsEdit="{Binding IsEdit,ElementName=cVA}" 
                                IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                IsExtProd="{Binding IsExtProd,ElementName=cVA}"
                                IsCO="True"   
                                IsWS22R="True"  
                                IsWS22T="True"  
                                IsWS22="False"   
                                IsShowRight="{Binding IsShowRight,ElementName=cVA}"
                                IsImageMax="{Binding IsImageMax,ElementName=cVA}" 
                                IMAGEPATH="{Binding IMAGEPATH,ElementName=cVA}"
                                DEFTXT="{Binding DEFWSTXT,ElementName=cVA}"/>

                    <Grid Grid.Row="1"  Grid.Column="1"  >
                        <Grid.RowDefinitions>
                            <RowDefinition Height="1*"/>
                            <RowDefinition Height="1*"/>
                        </Grid.RowDefinitions>
                        <BG:TSBS08 Grid.Row="0" 
                                       IsAuto="True" 
                                      IsEdit="{Binding IsEdit,ElementName=cVA}" 
                                      IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                       FAKTOR="{Binding FAKTOR,ElementName=cBS03}"
                                       EXAUF="{Binding WARP,ElementName=cWS31}"
                                       WEIGHT="{Binding WKG,ElementName=cWS}"   
                                        WARPENDS ="{Binding WARPENDS,ElementName=cWS}" 
                                     />
                        <WG:TWS33 Grid.Row="1"  
                                      IsAuto="True" 
                                      IsEdit="{Binding IsEdit,ElementName=cVA}" 
                                      IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                      DENUM="{Binding DENUM,ElementName=cWS}" 
                                      RWBRT="{Binding RWBRT,ElementName=cWS}" 
                                      RBRTOL="{Binding RBRTOL,ElementName=cWS}"  
                                      GFDISM="{Binding GFDISM,ElementName=cWS}"  
                                      WEIGHT="{Binding FKG,ElementName=cWS}"  
                                      WTKEY="{Binding WTKEY,ElementName=cWS}" 
                                      EXAUF="{Binding PRFART,ElementName=cVA}" 
                                     />
                    </Grid>

                  
                </Grid>
            </TabItem>
            <TabItem Header="成本评估" Name="cCO">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    <StackPanel>
                        <WrapPanel>
                            <Button Margin="10,0,0,0" Content="初始化" Click="StartABCommand"/>
                            
                            <TextBlock Margin="10,0,0,0"  Text="评估单号:"/>
                            <TextBlock Margin="10,0,0,0"  Text="{Binding EXORD,ElementName=TV}"/>
                            <TextBlock Margin="10,0,0,0"  Text="{Binding INFO,ElementName=TV}"  Background="Yellow"/>
                            <Button Margin="10,0,0,0" Content="启动评估" Click="StartKACommand"/>
                        </WrapPanel>
                    </StackPanel>
                    <Grid Grid.Row="1">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>
                        <WrapPanel Grid.Row="0"  >
                            <TextBlock  Text="销售费用"/>
                            <CO:TMCO03FN EXAUF="{Binding ABAUF,ElementName=cRZ}"
                                />
                        </WrapPanel>
                        <AR:TAB14FNVK  Grid.Row="1" 
                               IsEdit="{Binding IsEdit,ElementName=cVA}" 
                               IsSaved="{Binding IsSaved,ElementName=cVA}" 
                                ORDERNUM="{Binding KEY,ElementName=cRZ}"/>
                        <WrapPanel  Grid.Row="2"  Visibility="Collapsed">
                            <TextBlock  Text="织造费用"/>
                            <CO:TMCO03 EXAUF="{Binding ABAUF,ElementName=cDI}"
                                />
                        </WrapPanel>

                        <AR:TAB14WV  Grid.Row="3" 
                                    Name="cAB14WV"
                                    IsEdit="{Binding IsEdit,ElementName=cVA}"  
                                      IsSaved="{Binding IsSaved,ElementName=cVA}"  
                                     LOOMCOST="200"
                                      ORDERNUM="{Binding KEY,ElementName=cDI}" 
                                    />
                        <MUX:TMCO07   Grid.Row="4" 
                                 MTYPE="G"
                                   DES="经纱成本"
                                EXAUF="{Binding ABAUF,ElementName=cVW}"
                                />
                        <MUX:TMCO07   Grid.Row="5" 
                                 MTYPE="G"
                                  DES="纬纱成本"   
                                 EXAUF="{Binding ABAUF,ElementName=cDI}"
                                />                      
                    </Grid>
                    <Grid Grid.Row="2" Visibility="Collapsed">
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                            <ColumnDefinition Width="1*"></ColumnDefinition>
                        </Grid.ColumnDefinitions>
                        <AB:TAB05RZ  Grid.Column="0"  POSTYP="VA "
                                         MAKE2ORD="True"  
                                          IsDI="True"
                                           Name="cRZ" 
                                          dwWS="{Binding dwWS,ElementName=cWS}" 
                                           IsAuto="True" 
                                          EXAUF="{Binding EXORD,ElementName=TV}"
                                           />
                        <AB:TWAB55DI   Grid.Column="1"  
                                        POSTYP="DI "
                                         Name="cDI"
                                         MAKE2ORD="True"
                                    IsAuto="False" 
                                          dwWS="{Binding dwWS,ElementName=cWS}" 
                                        />
                        <AB:TWAB45  Grid.Column="2"  
                                    POSTYP="VW "
                                    Name="cVW"
                                      IsAuto="False" 
                                     MAKE2ORD="True" 
                                     IsABPCreated="{Binding IsChanged,ElementName=TV}" 
                                     
                             />
                    </Grid>
                </Grid>

            </TabItem>
            <TabItem Header="印染色号管理" Visibility="Collapsed">
                <VF:TWVA09 Grid.Row="0"  Grid.Column="0" Margin="0,5,0,0" 
                       Name="cVA09"
                       IsAuto="True"
                       dwVA="{Binding dwVA,ElementName=cVA}" 
                       PRART="{Binding PRFART,ElementName=cVA}" 
                       ART="{Binding NART,ElementName=cVA}"
                       FARBE="{Binding FARBE,ElementName=cVA}"
                        EXAUF="{Binding KEY,ElementName=cVA}"
                      
                       />
            </TabItem>
            <TabItem Header="准备工艺"  Name="ZoneVW" Visibility="Collapsed">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="1*"/>
                    </Grid.RowDefinitions>
                    <WK:TWS31  Grid.Row="0"     Name="cWS31"
                                 IsCanLoad="{Binding IsSelected,ElementName=ZoneVW}"
                              IsAuto="True"
                               EXAUF="{Binding PRFART,ElementName=cVA}"
                               IsEdit="{Binding IsEdit,ElementName=cVA}" 
                               IsSaved="{Binding IsSaved,ElementName=cVA}"/>
                    <Grid Grid.Row="1" Grid.Column="1">
                        <Grid.RowDefinitions>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                            <RowDefinition Height="Auto"/>
                        </Grid.RowDefinitions>

                        <BS:TBS03 Grid.Row="0" Name="cBS03"
                                  IsAuto="True"
                                  IsEdit="{Binding IsEdit,ElementName=cVA}"
                                   IsSaved="{Binding IsSaved,ElementName=cVA}"
                                   ORDERNUM="{Binding KEY,ElementName=cBS07}"  
                                  />
                        <BH:TBS04 Grid.Row="1" 
                                 IsAuto="True"
                                  IsEdit="{Binding IsEdit,ElementName=cVA}"
                                      IsSaved="{Binding IsSaved,ElementName=cVA}"
                                  ORDERNUM="{Binding KEY,ElementName=cBS07}"/>

                        <BC:TBS07 Grid.Row="2"
                                  x:Name="cBS07"
                                  IsAuto="True" 
                                    IsEdit="{Binding IsEdit,ElementName=cVA}"
                                    IsSaved="{Binding IsSaved,ElementName=cVA}"
                                  ORDERNUM="{Binding WARP,ElementName=cWS31}" 
                                  />
                    </Grid>

                </Grid>
            </TabItem>
            <TabItem Header="备注" Visibility="Collapsed">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1*"/>
                        <ColumnDefinition Width="1*"/>
                    </Grid.ColumnDefinitions>
                    <ex:AniScrollViewer Grid.Column="1"  >
                        <ex:TImage  IsImageMax="{Binding ElementName=cWS,Path=IsImageMax}"
                                      PHOTOLINK="{Binding ElementName=cWS,Path=PHOTOLINK}"
                                    />
                    </ex:AniScrollViewer>
                </Grid>
            </TabItem>
            <TabItem Header="经纬纱" Name="ZoneJW" Visibility="Collapsed">
                <ST:TWS04   Grid.Row="1"  Grid.Column="1" 
                                 Margin="0,5,0,0" Name="cWS04"
                               EXAUF="{Binding KEY,ElementName=cWS}"
                               IsEdit="{Binding IsEdit,ElementName=cVA}"
                               IsSaved="{Binding IsSaved,ElementName=cVA}"
                              />
            </TabItem>
        </TabControl>
    </Grid> 
</U:PRJTMP>
    
